<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>t1</title>
<style type="text/css">
.reg_form_table{
	width: 100%;clear:both;font-size:14px; font-family:"微软雅黑", "宋体"; color:#666666; text-align:right;
}
.reg_form_table td{
	height: 30px;
}
.texboxReg {
	 width:386px; padding: 2px 5px; border: 1px solid rgb(153, 153, 153); height: 22px; color: rgb(0, 0, 255); line-height: 22px; margin-right: 3px; background-color: rgb(255, 255, 255);
}
</style>
<script type="text/javascript" src="/My97DatePicker/WdatePicker.js"></script>
<link rel="stylesheet" href="/js/kindeditor-4.1.10/themes/default/default.css" />
<script type="text/javascript" src="/scripts/jquery.min.js"></script>
<script src="/js/kindeditor-4.1.10/kindeditor.js"></script>
<script src="/js/kindeditor-4.1.10/lang/zh_CN.js"></script>
</head>
<body>

<div>
<input type="hidden" id="id" name="id" value="<%if(request.getParameter("id")!=null) out.print(request.getParameter("id")); %>">
<input type="hidden" id="memberType" name="memberType" value="<%if(request.getParameter("memberType")!=null) out.print(request.getParameter("memberType")); %>">
<input type="hidden" id="committeeType" name="committeeType" value="<%if(request.getParameter("committeeType")!=null) out.print(request.getParameter("committeeType")); %>">
<table class="reg_form_table">
		<tr height="40">
			<td width="100">成员名称：</td>
			<td align="left">
			  &nbsp; <input id="memberName" name="memberName" value="" type="text" class="texboxReg" />
			  <span id="note_memberName"></span>
			</td>
		</tr>
		<tr height="40">
			<td width="100">职务：</td>
			<td align="left">
			  &nbsp; <input id="duty" name="duty" value="" type="text" class="texboxReg" />
			  <span id="note_duty"></span>
			</td>
		</tr>
		<tr height="40">
			<td>职称：</td>
			<td align="left">
			  &nbsp; <input id="professional" name="professional" value="" type="text" class="texboxReg" />
			  <span id="note_professional"></span>
			</td>
		</tr>
		<tr height="40">
			<td>专业：</td>
			<td align="left">
			  &nbsp; <input id="specialty" name="specialty" value="" type="text" class="texboxReg" />
			  <span id="note_specialty"></span>
			</td>
		</tr>
		<tr height="40">
			<td>单位：</td>
			<td align="left">
			  &nbsp; <input id="unit" name="unit" value="" type="text" class="texboxReg" />
			  <span id="note_unit"></span>
			</td>
		</tr>
	   </table>

</div>

<script type="text/javascript">

$(function() {
	findCommittee();
});

function findCommittee() {
	var id = $("#id").val();
	$.ajax({
		url : '/admin/org!findCommittee.action',
		type : 'post',
		data: {
			"id": id
		},
		dataType: 'json',
		success : function(data) {
		     if(data!=null && data!='') {
		    	 $("#memberName").val(data[0].memberName);
		    	 $("#duty").val(data[0].duty);
		    	 $("#professional").val(data[0].professional);
		    	 $("#specialty").val(data[0].specialty);
		    	 $("#unit").val(data[0].unit);
		    	 $("#memberType").val(data[0].memberType);
		    	 $("#committeeType").val(data[0].committeeType);
		     }
		},
		error : function(XMLHttpRequest, textStatus, errorThrown) {
			// 保存失败
			alert('error:' + textStatus);
		}
    });
}

</script> 

</body>
</html>